ToString
ToString[expr] gives a string corresponding to the printed form of expr in OutputForm.
ToString[expr,form] gives the string corresponding to output in the specified form.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.